package com.cp.yn.http.factory

import com.cp.yn.http.api.ApiLogin
import com.cp.yn.http.api.ApiOrder
import com.common.base.http.main.HttpManager

object ApiLoginFactory : ApiLogin by HttpManager.build().create(ApiLogin::class.java)
object ApiOrderFactory : ApiOrder by HttpManager.build().create(ApiOrder::class.java) {

    //示例：更换主机域名的扩展，不需要更换主机的可以省略
    fun host(host: String? = ""): ApiLogin {
        return HttpManager.build(host ?: "").create(ApiLogin::class.java)
    }


//    ********示例：以下使用接口路径调用************************

//    fun post(path: String?): PostHttpServiceImp {
//        return PostHttpServiceImp(path!!)
//    }
//
//    fun get(path: String?): GetHttpServiceImp {
//        return GetHttpServiceImp(path!!)
//    }
//
//    fun put(path: String?): PutHttpServiceImp {
//        return PutHttpServiceImp(path!!)
//    }
//
//    fun delete(path: String?): DeleteHttpServiceImp {
//        return DeleteHttpServiceImp(path!!)
//    }
}